package com.dingding.manager.common.exception;

import com.dingding.manager.common.exception.enums.BizExceptionEnum;

/**
 * @Description 返回给前台的友好错误提示
 * @author fengshuonan
 * @date 2016年11月12日 下午5:05:22
 */
public class ErrorTips {
	
	private int code;
	private String message;
	
	public ErrorTips(int code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	
	public ErrorTips(BizExceptionEnum bizExceptionEnum){
		this.code = bizExceptionEnum.getCode();
		this.message = bizExceptionEnum.getMessage();
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
